package cn.iocoder.yudao.module.pypm.controller.admin.attachment.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 附件信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AttachmentPageReqVO extends PageParam {

    @Schema(description = "项目ID", example = "2022")
    private Long projectId;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "所属ID;属于哪个表ID", example = "18304")
    private Long relevanceId;

    @Schema(description = "文件名称", example = "芋艿")
    private String fileName;

    @Schema(description = "文件路径")
    private String filePath;

    @Schema(description = "URL", example = "https://www.iocoder.cn")
    private String url;

    @Schema(description = "文件类型", example = "1")
    private String fileType;

    @Schema(description = "关联名称", example = "芋艿")
    private String relevanceName;

    @Schema(description = "文件原名", example = "张三")
    private String originalFileName;

    @Schema(description = "外网地址", example = "https://www.iocoder.cn")
    private String netUrl;

}